package com.example.baiduapi;
/*import com.example.baiduapi.Scoket.websocket.service.RobotService;*/
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication
@EnableAsync
public class BaiDuApiApplication {

    public static void main(String[] args) {

        SpringApplication.run(BaiDuApiApplication.class, args);
    }
/*  public static void main(String[] args) {

      SpringApplicationBuilder builder = new SpringApplicationBuilder(BaiDuApiApplication.class);
      ConfigurableApplicationContext ctx = builder.headless(false).run(args);

      //服务端开启定时抓取截图并发给客户端的处理
      RobotService robotService = ctx.getBean(RobotService.class);
      robotService.startCaputureTask();
  }*/

}
